package com.wuzhun.wxmp.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author baolin
 * @date 2022/12/03 14:24 下午
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;

    //@TableLogic
    private Integer status;

    @TableField(value = "created_time",fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(value = "updated_time",fill = FieldFill.UPDATE)
    private Date updatedTime;

}